projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a478a9c
)
(command-line-normalize-file-name):
author
Richard M. Stallman
<rms@gnu.org>
Wed, 28 Feb 1996 00:30:49 +0000
(
00:30
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 28 Feb 1996 00:30:49 +0000
(
00:30
+0000)
Don't collapse // at start of file name.
lisp/startup.el
patch
|
blob
|
history
diff --git
a/lisp/startup.el
b/lisp/startup.el
index b21fc83eebd2b673628ff23fcfbeb40aae81291f..0365b78549598d8478528536dc6698aa388f6d86 100644
(file)
--- a/
lisp/startup.el
+++ b/
lisp/startup.el
@@
-911,7
+911,9
@@
Type \\[describe-distribution] for information on getting the latest version."))
(defun command-line-normalize-file-name (file)
"Collapse multiple slashes to one, to handle non-Emacs file names."
- (while (string-match "//+" file)
+ ;; Use arg 1 so that we don't collapse // at the start of the file name.
+ ;; That is significant on some systems.
+ (while (string-match "//+" file 1)
(setq file (replace-match "/" t t file)))
file)